﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class Sach_DTO
    {
        private string _idSach;

        public string IdSach
        {
            get { return _idSach; }
            set { _idSach = value; }
        }

        private string _idtlSach;

        public string IdtlSach
        {
            get { return _idtlSach; }
            set { _idtlSach = value; }
        }

        private int _idnxbSach;

        public int IdnxbSach
        {
            get { return _idnxbSach; }
            set { _idnxbSach = value; }
        }

        private string _tenSach;

        public string TenSach
        {
            get { return _tenSach; }
            set { _tenSach = value; }
        }

        private int _giaSach;

        public int GiaSach
        {
            get { return _giaSach; }
            set { _giaSach = value; }
        }

        private string _trangthai;

        public string Trangthai
        {
            get { return _trangthai; }
            set { _trangthai = value; }
        }

        private int _slSach;

        public int SlSach
        {
            get { return _slSach; }
            set { _slSach = value; }
        }

        public Sach_DTO(string idsach, string idtlsach, int idnxbsach, string tensach, int giasach, string trangthai, int slsach)
        {
            IdSach = idsach;
            IdtlSach = idtlsach;
            IdnxbSach = idnxbsach;
            TenSach = tensach;
            GiaSach = giasach;
            Trangthai = trangthai;
            SlSach = slsach;
        }

        public Sach_DTO(string idsach)
        {
            IdSach = idsach;
        }
    }
    public class TL_DTO
    {
        private string _idtlSach;

        public string IdtlSach
        {
            get { return _idtlSach; }
            set { _idtlSach = value; }
        }

        private string _tentlSach;

        public string TentlSach
        {
            get { return _tentlSach; }
            set { _tentlSach = value; }
        }

        public TL_DTO(string idtlsach, string tentlsach)
        {
            IdtlSach = idtlsach;
            TentlSach = tentlsach;
        }
    }
    public class NXB_DTO
    {
        private int _idnxbSach;

        public int IdnxbSach
        {
            get { return _idnxbSach; }
            set { _idnxbSach = value; }
        }

        private string _tennxbSach;

        public string TennxbSach
        {
            get { return _tennxbSach; }
            set { _tennxbSach = value; }
        }

        private int _sdtnxbSach;

        public int SdtnxbSach
        {
            get { return _sdtnxbSach; }
            set { _sdtnxbSach = value; }
        }

        private string _diachinxbSach;

        public string DiachinxbSach
        {
            get { return _diachinxbSach; }
            set { _diachinxbSach = value; }
        }

        public NXB_DTO(int idnxbsach, string tennxbsach, int sdtnxbsach, string diachinxbsach)
        {
            IdnxbSach = idnxbsach;
            TennxbSach = tennxbsach;
            SdtnxbSach = sdtnxbsach;
            DiachinxbSach = diachinxbsach;
        }
    }
    public class NV_DTO
    {
        private int _idnvSach;

        public int IdnvSach
        {
            get { return _idnvSach; }
            set { _idnvSach = value; }
        }

        private string _tennvSach;

        public string TennvSach
        {
            get { return _tennvSach; }
            set { _tennvSach = value; }
        }

        private string _usernamenvSach;

        public string UsernamenvSach
        {
            get { return _usernamenvSach; }
            set { _usernamenvSach = value; }
        }

        private string _passwordnvSach;

        public string PasswordnvSach
        {
            get { return _passwordnvSach; }
            set { _passwordnvSach = value; }
        }

        private int _idquyennvSach;

        public int IdquyennvSach
        {
            get { return _idquyennvSach; }
            set { _idquyennvSach = value; }
        }

        public NV_DTO(int idnvsach, string tennvsach, string usernamenvsach, string passwordnvsach, int idquyennvsach)
        {
            IdnvSach = idnvsach;
            TennvSach = tennvsach;
            UsernamenvSach = usernamenvsach;
            PasswordnvSach = passwordnvsach;
            IdquyennvSach = idquyennvsach;
        }

        public NV_DTO(string usernamenvsach, string passwordnvsach)
        {
            UsernamenvSach = usernamenvsach;
            PasswordnvSach = passwordnvsach;
        }

        public NV_DTO(string usernamenvsach)
        {
            UsernamenvSach = usernamenvsach;
        }

        public NV_DTO(int idnvsach)
        {
            IdnvSach = idnvsach;
        }
        public NV_DTO(int idnvsach, string tennvsach)
        {
            IdnvSach = idnvsach;
            TennvSach = tennvsach;
        }
        //public 
    }
    public class CTHDN_DTO
    {
        private int _stt;

        public int Stt
        {
            get { return _stt; }
            set { _stt = value; }
        }

        private int _idhdSach;

        public int IdhdSach
        {
            get { return _idhdSach; }
            set { _idhdSach = value; }
        }

        private int _idSach;

        public int IdSach
        {
            get { return _idSach; }
            set { _idSach = value; }
        }

        private string _idnvSach;

        public string IdnvSach
        {
            get { return _idnvSach; }
            set { _idnvSach = value; }
        }

        private DateTime _tgnSach;

        public DateTime TgnSach
        {
            get { return _tgnSach; }
            set { _tgnSach = value; }
        }

        private int _slnSach;

        public int SlnSach
        {
            get { return _slnSach; }
            set { _slnSach = value; }
        }

        private int _gianSach;

        public int GianSach
        {
            get { return _gianSach; }
            set { _gianSach = value; }
        }

        public CTHDN_DTO(int stt, int idhdsach, int idsach, string idnvsach, DateTime tgnsach, int slnsach, int giansach)
        {
            Stt = stt;
            IdhdSach = idhdsach;
            IdSach = idsach;
            IdnvSach = idnvsach;
            TgnSach = tgnsach;
            SlnSach = slnsach;
            GianSach = giansach;
        }

        public CTHDN_DTO(int stt)
        {
            Stt = stt;
        }
    }
    public class CTHDX_DTO
    {
        private int _stt;

        public int Stt
        {
            get { return _stt; }
            set { _stt = value; }
        }

        private int _idhdSach;

        public int IdhdSach
        {
            get { return _idhdSach; }
            set { _idhdSach = value; }
        }

        private int _idSach;

        public int IdSach
        {
            get { return _idSach; }
            set { _idSach = value; }
        }

        private int _idnvSach;

        public int IdnvSach
        {
            get { return _idnvSach; }
            set { _idnvSach = value; }
        }

        private DateTime _tgxSach;

        public DateTime TgxSach
        {
            get { return _tgxSach; }
            set { _tgxSach = value; }
        }

        private int _slxSach;

        public int SlxSach
        {
            get { return _slxSach; }
            set { _slxSach = value; }
        }

        private int _giaxSach;

        public int GiaxSach
        {
            get { return _giaxSach; }
            set { _giaxSach = value; }
        }

        public CTHDX_DTO(int stt, int idhdsach, int idsach, int idnvsach, DateTime tgxsach, int slxsach, int giaxsach)
        {
            Stt = stt;
            IdhdSach = idhdsach;
            IdSach = idsach;
            IdnvSach = idnvsach;
            TgxSach = tgxsach;
            SlxSach = slxsach;
            GiaxSach = giaxsach;
        }

        public CTHDX_DTO(int stt)
        {
            Stt = stt;
        }
    }
    public class HDN_DTO
    {
        private int _idhdSach;

        public int IdhdSach
        {
            get { return _idhdSach; }
            set { _idhdSach = value; }
        }

        private int _sldhSach;

        public int SldhSach
        {
            get { return _sldhSach; }
            set { _sldhSach = value; }
        }

        private DateTime _tgnSach;

        public DateTime TgnSach
        {
            get { return _tgnSach; }
            set { _tgnSach = value; }
        }
        public HDN_DTO(int idhdsach, int sldhsach, DateTime tgnsach)
        {
            IdhdSach = idhdsach;
            TgnSach = tgnsach;
            SldhSach = sldhsach;
        }

        public HDN_DTO(int idhdsach)
        {
            IdhdSach = idhdsach;
        }
    }
    public class HDX_DTO
    {
        private int _idhdSach;

        public int IdhdSach
        {
            get { return _idhdSach; }
            set { _idhdSach = value; }
        }

        private int _sldhSach;

        public int SldhSach
        {
            get { return _sldhSach; }
            set { _sldhSach = value; }
        }

        private DateTime _tgxSach;

        public DateTime TgxSach
        {
            get { return _tgxSach; }
            set { _tgxSach = value; }
        }

        public HDX_DTO(int idhdsach, int sldhsach, DateTime tgxsach)
        {
            IdhdSach = idhdsach;
            TgxSach = tgxsach;
            SldhSach = sldhsach;
        }

        public HDX_DTO(int idhdsach)
        {
            IdhdSach = idhdsach;
        }
    }

}
